public class PetDog {
    public String name;
    public int age;
    public String color;
    public void barks(){
        System.out.println(this.name + "汪汪汪");

    }
    public void wag(){
        System.out.println(this.name + "摇尾巴");
    }
    public void eat(){
        System.out.println(this.name + "吃狗粮");
    }
    public void sleep(){
        System.out.println(this.name + "睡大觉");
    }

    public PetDog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    @Override
    public String toString() {
        return "PetDog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }
}
